package com.dpj.mapper;

import com.dpj.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    User selectByNameAndPassword(@Param("username") String username, @Param("password") String password);

    @Insert("insert into tb_user values(null,#{name},#{password}) ")
    void insertInto(@Param("name") String username,@Param("password") String password);

    Boolean selectByName(String username);
}
